﻿using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Validation;
using Xms.Abp.Data;

namespace IdentityManagement
{
    public class IdentityRoleCreateOrUpdateParameterBase : ExtensibleObject, IHasName, IHasRemark
    {
        [Required]
        [DynamicStringLength(typeof(IdentityRoleConsts), nameof(IdentityRoleConsts.MaxNameLength))]
        public string Name { get; set; }

        [Required]
        public Guid OrganizationUnitId { get; set; }

        public bool IsDefault { get; set; }

        public bool IsPublic { get; set; }

        public string Remark { get; set; }

        protected IdentityRoleCreateOrUpdateParameterBase() : base(false)
        {
            
        }
    }
}